<template>
  <van-swipe v-if="banners.length" class="my-swipe" :autoplay="3000" indicator-color="white">
    <van-swipe-item v-for="(item, index) in banners" :key="index">
      <img v-lazy="item.img_url" alt="">
    </van-swipe-item>
  </van-swipe>
</template>

<script>
export default {
  name: 'HomeSwiper',
  props: {
    banners: {
      type: Array,
      default(){
        return []
      }
    }
  },
  setup () {

    return {
    };
  },

  components: {}
}

</script>
<style lang='scss' scoped>
img[data-v-358e9ef0] {
  width: 100%;
  height: 165px !important;
}
</style>